/*
 * @Author: zhao.dp
 * @Date: 2022-08-31 15:50:42
 * @LastEditors: zhao.dp
 * @LastEditTime: 2022-08-31 15:56:07
 * @Description:
 */
import path from 'path'
export function mkdirActionHelper(data) {
  let targetDir = data.path
  const actions = []
  if (data.mkdir) {
    targetDir = path.join(data.path, data.name)
    actions.push({ type: 'mkdir' })
  }
  return {
    targetDir,
    actions,
  }
}
